package dao

import (
	db "github.com/go-orm/app/database"
	"github.com/go-orm/app/user/model"
	_ "github.com/go-orm/app/user/model"
)

type UserDao struct {
}

func GetUserDao()  *UserDao{
	return &UserDao{}
}
func (this *UserDao) Add(user *model.User) {

	db.GetDb().Create(user)
}
func (this *UserDao) queryAll() {
	db.GetDb().Rows()
}
